<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use App\Models\AppUsers;
use App\Models\Product;
use App\Models\Vpn;
use Illuminate\Http\Request;

class VpnController extends Controller
{
    public function index(Request $request)
    {
//        $token = $request->get('api_token', '');
//        $uuid = $request->get('uuid', '');
//        $user = AppUsers::where('api_token', $token)->where('uuid', $uuid)->first();
        //->where('level_id', $user->level_id)
        $vpn = Vpn::with('level')->get();
        return $this->success(200, '成功', $vpn->toArray());
    }
}
